import re


def to_classname(name: str) -> str:
    return ''.join([x.capitalize() for x in name.split('-')])


def to_cliname(name: str) -> str:
    return '-'.join([x.casefold() for x in re.findall('[A-Z0-9][^A-Z0-9]*', name)])


def to_compactname(name: str) -> str:
    return ''.join(x.casefold() for x in name if x.isalnum())
